package com.dhecp.project.purchase.domain;

import com.dhecp.common.annotation.ForUpdate;
import com.dhecp.core.domain.BaseBusinessEntityKJ;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @program: kjecp
 * @description: 采购订单
 * @author: hlf
 * @create: 2022-08-22 09:24
 */
public class PurchaseOrder extends BaseBusinessEntityKJ {

	private static final long serialVersionUID = 1L;
	
	@ForUpdate(fieldName = "1688账号")
    private String aliAccount;//1688账号
    @ForUpdate(fieldName = "1688订单编号")
    private String aliOrderNumber;//1688订单编号
    @ForUpdate(fieldName = "采购下单地址")
    private String addresses;//采购下单地址
    @ForUpdate(fieldName = "采购计划备注")
    private String planToNote;//采购计划备注
    @ForUpdate(fieldName = "实际订单金额")
    private Double orderAmount;//采购订单金额
    @ForUpdate(fieldName = "实际运费")
    private Double freightCharge;//采购运费
    @ForUpdate(fieldName = "采购订单金额")
    private Double orderAmount2;//采购订单金额
    @ForUpdate(fieldName = "采购运费")
    private Double freightCharge2;//采购运费
    @ForUpdate(fieldName = "采购服务费")
    private Double serviceCharge;//采购服务费
    @ForUpdate(fieldName = "订单状态")
    private String state;//订单状态
    @ForUpdate(fieldName = "物流渠道")
    private String aliPlace;//物流渠道
    @ForUpdate(fieldName = "物流单号")
    private String aliLogisticsCode;//物流单号
    @ForUpdate(fieldName = "入库单号")
    private String warehouse;//入库单号
    @ForUpdate(fieldName = "1688留言")
    private String aliMessage;//1688留言
    @ForUpdate(fieldName = "采购计划单号")
    private String planID;//采购计划单号
    @ForUpdate(fieldName = "错误信息")
    private String aliErrorMessages;//错误信息
    @ForUpdate(fieldName = "数据结果")
    private String aliResult;//数据结果
    @ForUpdate(fieldName = "物流公司编码")
    private String aliLogisticsCompanyCode;//物流公司编码
    @ForUpdate(fieldName = "物流状态")
    private String aliLogisticsState;//物流状态
    @ForUpdate(fieldName = "1688订单状态")
    private String aliState;//1688订单状态
    @ForUpdate(fieldName = "物流公司名称")
    private String aliLogisticsCompanyName;//物流公司名称
    @ForUpdate(fieldName = "物流运单号")
    private String aliLogisticsBillNo;//物流运单号
    @ForUpdate(fieldName = "采购下单地址")
    private String orderAddress;//采购下单地址
    @ForUpdate(fieldName = "采购下单地址")
    private String supplierID;//供应商ID
    @ForUpdate(fieldName = "供应商名称")
    private String supplierName;//供应商名称
    @ForUpdate(fieldName = "入库时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warehouseTime;//入库时间
    @ForUpdate(fieldName = "付款状态")
    private String isPay;//是否付款
    private String aliPromotionId; // 1688店铺优惠ID

    //虚拟字段
    private String guid;//唯一标识
    private Integer iid;//行号
    private String code;//商品编码
    private String name;//商品名称
    private String sCode;//子件编码
    private String sName;//子件名称
    private Integer sum;//子件采购总数
    private Integer fRkSl;//入库数量
    private Double price;//子件预估单价
    private Double cost;//子件预估总价
    private Double price2;//子件实际单价
    private Double cost2;//子件实际总价
    private String goodsID;//商品ID
    private String tradeName;//商品标题
    private String skuId;//skuId
    private String specId;//specId
    private String sKU;//SKU属性
    private String sKUCode;//sku编码
    private String pGuid;//父唯一标识
    private String pNid;//父单号
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; //创建日期

    //虚拟字段
    private String spSl;//商品数量


    public String getAliAccount() {
        return aliAccount;
    }

    public void setAliAccount(String aliAccount) {
        this.aliAccount = aliAccount;
    }

    public String getAliOrderNumber() {
        return aliOrderNumber;
    }

    public void setAliOrderNumber(String aliOrderNumber) {
        this.aliOrderNumber = aliOrderNumber;
    }

    public String getAddresses() {
        return addresses;
    }

    public void setAddresses(String addresses) {
        this.addresses = addresses;
    }

    public String getPlanToNote() {
        return planToNote;
    }

    public void setPlanToNote(String planToNote) {
        this.planToNote = planToNote;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Double getFreightCharge() {
        return freightCharge;
    }

    public void setFreightCharge(Double freightCharge) {
        this.freightCharge = freightCharge;
    }

    public Double getServiceCharge() {
        return serviceCharge;
    }

    public void setServiceCharge(Double serviceCharge) {
        this.serviceCharge = serviceCharge;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getAliPlace() {
        return aliPlace;
    }

    public void setAliPlace(String aliPlace) {
        this.aliPlace = aliPlace;
    }

    public String getAliLogisticsCode() {
        return aliLogisticsCode;
    }

    public void setAliLogisticsCode(String aliLogisticsCode) {
        this.aliLogisticsCode = aliLogisticsCode;
    }

    public String getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(String warehouse) {
        this.warehouse = warehouse;
    }

    public String getAliMessage() {
        return aliMessage;
    }

    public void setAliMessage(String aliMessage) {
        this.aliMessage = aliMessage;
    }

    public String getPlanID() {
        return planID;
    }

    public void setPlanID(String planID) {
        this.planID = planID;
    }

    public String getAliErrorMessages() {
        return aliErrorMessages;
    }

    public void setAliErrorMessages(String aliErrorMessages) {
        this.aliErrorMessages = aliErrorMessages;
    }

    public String getAliResult() {
        return aliResult;
    }

    public void setAliResult(String aliResult) {
        this.aliResult = aliResult;
    }

    public String getAliLogisticsCompanyCode() {
        return aliLogisticsCompanyCode;
    }

    public void setAliLogisticsCompanyCode(String aliLogisticsCompanyCode) {
        this.aliLogisticsCompanyCode = aliLogisticsCompanyCode;
    }

    public String getAliLogisticsState() {
        return aliLogisticsState;
    }

    public void setAliLogisticsState(String aliLogisticsState) {
        this.aliLogisticsState = aliLogisticsState;
    }

    public String getAliState() {
        return aliState;
    }

    public void setAliState(String aliState) {
        this.aliState = aliState;
    }

    public String getAliLogisticsCompanyName() {
        return aliLogisticsCompanyName;
    }

    public void setAliLogisticsCompanyName(String aliLogisticsCompanyName) {
        this.aliLogisticsCompanyName = aliLogisticsCompanyName;
    }

    public String getAliLogisticsBillNo() {
        return aliLogisticsBillNo;
    }

    public void setAliLogisticsBillNo(String aliLogisticsBillNo) {
        this.aliLogisticsBillNo = aliLogisticsBillNo;
    }

    public String getOrderAddress() {
		return orderAddress;
	}

	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}

	@Override
    public String getGuid() {
        return guid;
    }

    @Override
    public void setGuid(String guid) {
        this.guid = guid;
    }

    @Override
    public Integer getIid() {
        return iid;
    }

    @Override
    public void setIid(Integer iid) {
        this.iid = iid;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public String getsCode() {
        return sCode;
    }

    public void setsCode(String sCode) {
        this.sCode = sCode;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Double getPrice2() {
        return price2;
    }

    public void setPrice2(Double price2) {
        this.price2 = price2;
    }

    public Double getCost2() {
        return cost2;
    }

    public void setCost2(Double cost2) {
        this.cost2 = cost2;
    }

    public String getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(String goodsID) {
        this.goodsID = goodsID;
    }

    public String getTradeName() {
        return tradeName;
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getSpecId() {
        return specId;
    }

    public void setSpecId(String specId) {
        this.specId = specId;
    }

    public String getsKU() {
        return sKU;
    }

    public void setsKU(String sKU) {
        this.sKU = sKU;
    }

    public String getsKUCode() {
        return sKUCode;
    }

    public void setsKUCode(String sKUCode) {
        this.sKUCode = sKUCode;
    }

    @Override
    public String getpGuid() {
        return pGuid;
    }

    @Override
    public void setpGuid(String pGuid) {
        this.pGuid = pGuid;
    }

    public String getpNid() {
        return pNid;
    }

    public void setpNid(String pNid) {
        this.pNid = pNid;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSupplierID() {
        return supplierID;
    }

    public void setSupplierID(String supplierID) {
        this.supplierID = supplierID;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Date getWarehouseTime() {
        return warehouseTime;
    }

    public void setWarehouseTime(Date warehouseTime) {
        this.warehouseTime = warehouseTime;
    }

    public String getIsPay() {
        return isPay;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public Integer getfRkSl() {
        return fRkSl;
    }

    public void setfRkSl(Integer fRkSl) {
        this.fRkSl = fRkSl;
    }

    public Double getOrderAmount2() {
        return orderAmount2;
    }

    public void setOrderAmount2(Double orderAmount2) {
        this.orderAmount2 = orderAmount2;
    }

    public Double getFreightCharge2() {
        return freightCharge2;
    }

    public void setFreightCharge2(Double freightCharge2) {
        this.freightCharge2 = freightCharge2;
    }

    public String getSpSl() {
        return spSl;
    }

    public void setSpSl(String spSl) {
        this.spSl = spSl;
    }

	public String getAliPromotionId() {
		return aliPromotionId;
	}

	public void setAliPromotionId(String aliPromotionId) {
		this.aliPromotionId = aliPromotionId;
	}
}